package com.ruoyi.teach.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 章节时间计划对象 nb_chapter_plan
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
public class NbChapterPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 章节ID */
    @Excel(name = "章节ID")
    private Long chapterId;

    /** 所需天数 */
    @Excel(name = "所需天数")
    private Long requiredTime;

    /** 所需天数开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "所需天数开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 所需天数结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "所需天数结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }
    public void setRequiredTime(Long requiredTime) 
    {
        this.requiredTime = requiredTime;
    }

    public Long getRequiredTime() 
    {
        return requiredTime;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chapterId", getChapterId())
            .append("requiredTime", getRequiredTime())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
